<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>IP Manager</title>
	<style type="text/css">
		@import "view/dojo-1.3.0/dijit/themes/soria/soria.css";
		@import "view/css/style.css";
	</style>
	<script type="text/javascript" src="view/dojo-1.3.0/dojo/dojo.js"
		djConfig="parseOnLoad:true, isDebug: true "></script>
	<script type="text/javascript">
		dojo.require("dojox.data.PersevereStore");
		dojo.require("dojox.cometd.HttpChannels");
		dojo.require("dojo.parser");
		dojo.require("dojox.grid.DataGrid");
		
	</script>
</head>
<body class="soria">

<?
	require("constants.php");
	require("head.php");
	$controller	=	$_GET['controller'];
	$action		=	$_GET['action'];
	if($controller == '' && $action == '')
	{
		$view	=	"Welcome";
	}
	else if($action != '')
	{
		$do	=	substr($action,0,2);
		if($do == 'Do')
		{
			$view	=	substr($action,2,strlen($action));
		}
		else
		{
			$view	=	$action;
		}
	}
	
	$viewArr	=	getView($view);
	
	print getHeader('',$keyWords);
?>

<!--bodyMain start -->
<div id="bodyMain">
<!--body start -->
<div id="body">

	<? include("left.php"); ?>

	<? include($viewArr['right'].'.php'); ?>
<br class="spacer" />
</div>
<!--body end -->
<br class="spacer" />
</div>
<!--bodyMain end -->
<!--footer start -->

<!--footer end -->
</body>
</html>
